package com.lt.flashcard.model.entity;

import org.bson.types.ObjectId;

import com.google.code.morphia.annotations.Entity;
import com.google.code.morphia.annotations.Id;
import com.google.code.morphia.annotations.Indexed;

/**
 * Store the configuration and statistic data of user
 * @author ocsen
 *
 */
@Entity(value="userconfig", noClassnameStored=true)
public class UserConfig {

	@Id
	private ObjectId id;
	
	@Indexed(unique=true)
	private Long userid;
	
	/** USED FOR TESTING */
	
	/**
	 * When user gain plus point in testing, display a notice dialog to explain
	 */
	private boolean showTestingPointNotice = true;

	public ObjectId getId() {
		return id;
	}

	public void setId(ObjectId id) {
		this.id = id;
	}

	public Long getUserid() {
		return userid;
	}

	public void setUserid(Long userid) {
		this.userid = userid;
	}

	public boolean isShowTestingPointNotice() {
		return showTestingPointNotice;
	}

	public void setShowTestingPointNotice(boolean showTestingPointNotice) {
		this.showTestingPointNotice = showTestingPointNotice;
	}
}
